/**
 * author: abid.hussain
 */
exports.GAEventsModel = Core.Class.subclass({
	classname : 'GAEventsModel',
	initialize : function (){
		this.eventsId =0;
		this.event_type = null;
		this.user_id = null;
		this.user_level = null;
		this.p_curr_bal = null;
		this.s_curr_bal = null;
		this.ts = null;
		this.p_1 = null;
		this.p_2 = null;
		this.p_3 = null;
		this.is_error = "0";
		this.state = "";
	},
	setEventType : function (type){
		this.event_type = type;
	},
	setUserId : function (id){
		this.user_id = id;
	},
	setUserLevel : function (level){
		this.user_level = level;
	},
	setPCurrBal : function (balance){
		this.p_curr_bal = balance;
	},
	setSCurrBal : function (balance){
		this.s_curr_bal = balance;
	},
	setTs : function (time){
		this.ts = time;
	},
	setP1 : function (param){
		this.p_1 = param;
	},
	setP2 : function (param){
		this.p_2 = param;
	},
	setP3 : function (param){
		this.p_3 = param;
	},
	setIsError : function (error){
		this.is_error = error;
	},
	getEventType : function (){
		return this.event_type;
	},
	getUserId : function (){
		return this.user_id ;
	},
	getUserLevel : function (){
		return this.user_level;
	},
	getPCurrBal : function (){
		return this.p_curr_bal;
	},
	getSCurrBal : function (){
		return this.s_curr_bal;
	},
	getTs : function (){
		return this.ts;
	},
	getP1 : function (){
		return this.p_1;
	},
	getP2 : function (){
		return this.p_2;
	},
	getP3 : function (){
		return this.p_3;
	},
	getIsError : function (){
		return this.is_error;
	},
	toJSON: function() {
		var obj = {};
		for (var i in this) {
			if (i != "state") {
				obj[i] = this[i];
			}
		}
		return obj;
	},
	
	destroy: function(){
		this.eventsId =null;
		this.event_type = null;
		this.user_id = null;
		this.user_level = null;
		this.p_curr_bal = null;
		this.s_curr_bal = null;
		this.ts = null;
		this.p_1 = null;
		this.p_2 = null;
		this.p_3 = null;
		this.is_error =null;
		this.state =null;
	}
});